/* ========================================
   STYLES DE BASE
   ======================================== */
/* Paragraphes globaux */
p {
    color: #fff;
    text-align: center;
    font-style: italic;
    font-weight: bold;
    font-size: 1.35em;
}

/* ========================================
   HEADER
   ======================================== */
.header-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 40px 0;
    overflow: hidden; /* Empêche tout débordement qui créerait une bande */
}

.header-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('photo/com/fontete.jpg');
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.header-content > * {
    position: relative;
    z-index: 1;
}

h1 {
    margin: 0px 0;
    color: #fff;
    text-align: center;
}

.logo-img {
    width: 200px;
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
}

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */
.corps {
    background: #e5e0e0;
    flex: 1 1 auto;
    width: 100%;
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

body {
    background-color: #303030;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden; /* Evite tout débordement horizontal */
}

html {
    box-sizing: border-box;
    overflow-x: hidden; /* Empêche la bande due au scroll horizontal */
}
*, *::before, *::after { box-sizing: inherit; }

/* Sécuriser la largeur des blocs majeurs */
.header-content,
.corps,
.corps2,
.quiz-container {
    max-width: 100%;
}

/* Images responsive sans débordement */
img { max-width: 100%; height: auto; }
/* ========================================
   SECTION C2 (Texte + Image Branham)
   ======================================== */
.tete {
    text-align: center;
    font-size: 1.5em;
    font-style: italic;
    color: #000000;  
    margin-top: 92px;     
}

.c2 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    max-width: 1100px;
    width: 100%;
    background: transparent;
    margin: 0 auto;
}

.tete3 {
    flex: 1;
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 650px; 
    margin-top: 62px;
    color: #000000;
}

/* Image de Branham */
.branham-img {
    flex: 1;
    width: 180px;
    height: auto;
    border-radius: 8px; 
    max-width: 260px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #b9b5b5;
    padding: 8px;
    margin-top: 80px !important;
    align-self: flex-start;
}


/* ========================================
   MENU HAMBURGER
   ======================================== */
.menu-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
 
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 101;
    padding: 0;
    transition: background 0.2s;
    
}
.menu-toggle:hover {
    background: #d3b1b1;
}
.menu-toggle .bar {
    display: block;
    width: 26px;
    height: 4px;
    margin: 3px 0;
    background: #444;
    border-radius: 2px;
    transition: 0.3s;
    
}

/* ========================================
   MENU DÉROULANT
   ======================================== */
.menu-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: #f1dada;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    position: absolute;
    top: 80px;
    left: 24px;
    min-width: 220px;
    z-index: 100;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow: hidden;
    
}
.menu-list.show {
    display: flex;
}
.menu-list li {
    width: 100%;
}
.menu-list li a {
    display: block;
    padding: 16px 28px;
    color: #222;
    text-decoration: none;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.menu-list li a:hover {
    background: #f2f2f2;
}
.menu-list li:last-child a {
    border-bottom: none;
}

/* ========================================
   RESSOURCES DYNAMIQUES ECODIM
   ======================================== */
.ecodim-resources {
    background: #e5e0e0;
    width: 100%;
    padding: 50px 20px 20px;
}

.ecodim-resources-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.ecodim-resources h2 {
    color: #2c3e50;
    text-align: center;
    font-size: 1.9em;
    margin: 0 0 24px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.resource-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.resource-card h3 {
    color: #2c3e50;
    font-size: 1.2em;
    margin: 8px 0 10px;
}

.resource-card p {
    color: #555;
    font-size: 1em;
    font-style: normal;
    font-weight: normal;
    text-align: left;
    line-height: 1.5;
}

.resource-card a {
    display: inline-block;
    background: #3498db;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px 16px;
}

.resource-meta {
    color: #7f8c8d;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
}

/* ========================================
   QUIZ STYLES
   ======================================== */
.corps2 {
    background: #e5e0e0;
    width: 100%;
    min-height: 100vh;
    padding: 80px 20px 60px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.quiz-container {
    max-width: 800px;
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.quiz-title {
    color: #2c3e50;
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 8px;
    font-weight: bold;
}

.quiz-subtitle {
    color: #7f8c8d;
    text-align: center;
    font-size: 1em;
    margin-bottom: 30px;
    font-style: italic;
}

.question-block {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.question-block:hover {
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.question-text {
    color: #2c3e50;
    font-size: 1.05em;
    margin-bottom: 15px;
    font-weight: 600;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.option input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option span {
    color: #2c3e50;
    font-size: 0.95em;
    font-weight: normal;
    font-style: normal;
}

.option input[type="radio"]:checked + span {
    font-weight: bold;
    color: #3498db;
}

.submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 1.05em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ========================================
   RESULTS STYLES
   ======================================== */
.results-container {
    margin-top: 30px;
}

.results-title {
    color: #2c3e50;
    font-size: 1.6em;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
}

.score-display {
    margin-bottom: 30px;
}

.score-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.score-box.excellent {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.score-box.good {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.score-box.needs-improvement {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.score-box h3 {
    margin: 0 0 12px 0;
    font-size: 1.3em;
    color: white;
}

.score-number {
    font-size: 2.5em;
    font-weight: bold;
    margin: 15px 0;
    color: white !important;
    text-align: center !important;
    font-style: normal !important;
}

.score-message {
    font-size: 1.05em;
    margin: 0;
    color: white !important;
    text-align: center !important;
    font-style: italic !important;
}

.section-title {
    color: #2c3e50;
    font-size: 1.4em;
    margin: 25px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 3px solid #3498db;
    font-weight: bold;
}

.section-description {
    color: #555 !important;
    font-size: 0.95em !important;
    margin: 8px 0 15px 0 !important;
    font-style: normal !important;
    text-align: left !important;
    font-weight: normal !important;
}

.wrong-answer-item {
    background: #fff5f5;
    border-left: 4px solid #e74c3c;
    padding: 16px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.wrong-answer-item h4 {
    color: #c0392b;
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.question-text-small {
    color: #2c3e50 !important;
    font-size: 0.95em !important;
    margin: 8px 0 !important;
    font-style: normal !important;
    text-align: left !important;
}

.user-answer {
    color: #e74c3c !important;
    font-weight: bold !important;
    margin: 6px 0 !important;
    font-size: 0.95em !important;
    text-align: left !important;
}

.correct-answer {
    color: #27ae60 !important;
    font-weight: bold !important;
    margin: 6px 0 !important;
    font-size: 0.95em !important;
    text-align: left !important;
}

.perfect-score {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white !important;
    padding: 25px;
    border-radius: 10px;
    text-align: center !important;
    font-size: 1.3em !important;
    font-weight: bold !important;
}

.correction-item {
    background: #f0f8ff;
    border-left: 4px solid #3498db;
    padding: 16px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.correction-item.correct-item {
    background: #f0fff4;
    border-left: 4px solid #27ae60;
}

.correction-item h4 {
    color: #2980b9;
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.correct-answer-highlight {
    color: #27ae60 !important;
    font-weight: bold !important;
    margin: 10px 0 !important;
    font-size: 0.98em !important;
    text-align: left !important;
}

.explanation {
    color: #34495e !important;
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0 0 0 !important;
    font-style: italic !important;
    border-left: 3px solid #95a5a6;
    font-size: 0.93em !important;
    text-align: left !important;
}

.reset-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablettes et petits écrans (max 768px) */
@media screen and (max-width: 768px) {
    .header-content {
        padding: 20px 0;
        background-color: #303030;
    }
    .c2 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tete {
        font-size: 1.2em;
        margin-top: 40px;
        padding: 0 15px;
    }
    
    .tete3 {
        font-size: 0.95em;
        line-height: 1.5;
        max-width: 100%;
        text-align: center;
        margin-top: 20px;
    }
    
    .branham-img {
        width: 200px;
        max-width: 250px;
        margin-top: 20px !important;
    }
    
    .corps {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .logo-img {
        width: 150px;
    }

    .quiz-container {
        padding: 25px 20px;
    }
    
    .quiz-title {
        font-size: 1.8em;
    }
    
    .question-text {
        font-size: 1.1em;
    }
    
    .option {
        padding: 12px 15px;
    }
    
    .submit-btn {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    
    .score-number {
        font-size: 2.5em;
    }
}

/* Smartphones (max 480px) */
@media screen and (max-width: 480px) {
    .header-content {
        padding: 15px 0;
        background-color: #303030;
    }
    .tete {
        font-size: 1em;
        margin-top: 30px;
        padding: 0 10px;
    }
    
    .tete3 {
        font-size: 0.85em;
        line-height: 1.4;
        margin-top: 20px;
    }
    
    .branham-img {
        width: 150px;
        max-width: 180px;
        margin-top: 15px !important;
    }
    
    .corps {
        padding: 15px 10px;
    }
    
    h1 {
        font-size: 1.2em;
        padding: 0 10px;
    }
    
    .logo-img {
        width: 120px;
    }
}

/* Très petits smartphones - iPhone SE, etc. (max 375px) */
@media screen and (max-width: 375px) {
    .header-content {
        padding: 10px 0;
        background-color: #303030;
    }
    .tete {
        font-size: 0.9em;
        margin-top: 20px;
        padding: 0 8px;
    }
    
    .tete3 {
        font-size: 0.75em;
        line-height: 1.3;
        margin-top: 15px;
        text-align: justify;
    }
    
    .branham-img {
        width: 120px;
        max-width: 150px;
        margin-top: 15px !important;
        padding: 5px;
    }
    
    .corps {
        padding: 10px 8px;
    }
    
    h1 {
        font-size: 1em;
        padding: 0 8px;
    }
    
    .logo-img {
        width: 100px;
    }
}

/* ========================================
   BOUTON STYLE VERRE (LIQUID GLASS EFFECT)
   ======================================== */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.29);
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.7px);
    -webkit-backdrop-filter: blur(6.7px);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* ========================================
   JEUX INTERACTIFS STYLES
   ======================================== */
.games-section {
    background: #e5e0e0;
    width: 100%;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.games-title {
    color: #2c3e50;
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.games-subtitle {
    color: #7f8c8d;
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    font-style: italic;
}

/* Améliorations pour la section des jeux */
.games-section {
    background: #e5e0e0;
    width: 100%;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px; /* Espacement vertical entre les jeux */
}

.game-container {
    max-width: 800px;
    width: 100%;
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 0; /* Suppression de margin-bottom pour utiliser gap */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 2px solid transparent; /* Bordure transparente par défaut */
    transition: all 0.3s ease;
}

.game-container:hover {
    border-color: #3498db; /* Bordure bleue au survol pour attirer l'attention */
    transform: translateY(-5px); /* Léger soulèvement au survol */
}

/* Séparateur entre les jeux */
.game-container:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
}

/* Styles pour les en-têtes de chaque jeu */
.game-title {
    color: #2c3e50;
    font-size: 1.6em;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    position: relative;
}

.game-title::before {
    content: '🎮';
    margin-right: 10px;
    font-size: 0.9em;
}

.game-description {
    color: #555;
    text-align: center;
    font-size: 1em;
    margin-bottom: 25px;
    font-style: italic;
    background: rgba(52, 152, 219, 0.1);
    padding: 10px;
    border-radius: 8px;
}

/* Responsive amélioré */
@media screen and (max-width: 768px) {
    .games-section {
        gap: 30px; /* Espacement réduit sur mobile */
        padding: 40px 15px;
    }
    
    .game-container {
        padding: 20px;
    }
    
    .game-container:not(:last-child)::after {
        bottom: -15px;
        width: 90%;
    }
}

.game-title {
    color: #2c3e50;
    font-size: 1.6em;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.game-description {
    color: #555;
    text-align: center;
    font-size: 1em;
    margin-bottom: 25px;
    font-style: italic;
}

.game-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.game-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Jeu de Mémoire */
.memory-game {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    max-width: 400px;
    width: 100%;
}

.memory-card {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.9em;
    color: white;
    text-align: center;
    padding: 5px;
    font-weight: bold;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Ombre pour le contraste */
}

.memory-card.flipped {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: rotateY(180deg) scaleX(-1); /* Rotation et inversion pour corriger le texte */
    color: #2d3436; /* Couleur du texte plus foncée pour le contraste */
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5); /* Ombre pour améliorer la lisibilité */
    font-weight: bold;
    backface-visibility: hidden;
}

.memory-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.memory-card.matched {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.game-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.score-display {
    font-size: 1.1em;
    color: #2c3e50;
    font-weight: bold;
}

/* Jeu de Puzzle */
.puzzle-game {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.puzzle-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 20px;
    max-width: 300px;
    width: 100%;
}

.puzzle-piece {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5em;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.puzzle-piece:hover {
    transform: scale(1.05);
}

.puzzle-piece.correct {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

/* Jeu de Quiz Biblique pour Enfants */
.kids-quiz-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.quiz-question {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3) translateY(-20px); opacity: 0; }
    50% { transform: scale(1.05); opacity: 0.8; }
    70% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.verse-display {
    font-size: 1.2em;
    color: #2d3436;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 10px;
}

.question-text {
    font-size: 1.3em;
    color: #2d3436;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.quiz-option {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.quiz-option:hover::before {
    left: 100%;
}

.quiz-option:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(116, 185, 255, 0.4);
}

.quiz-option:active {
    transform: translateY(-1px) scale(1.02);
}

.quiz-option.correct {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    animation: correctPulse 0.6s ease-in-out;
}

.quiz-option.incorrect {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    animation: incorrectShake 0.6s ease-in-out;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.quiz-controls {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.quiz-score {
    font-size: 1.3em;
    color: #2d3436;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quiz-feedback {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(162, 155, 254, 0.3);
    animation: feedbackSlide 0.5s ease-out;
}

@keyframes feedbackSlide {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Responsive pour le quiz enfants */
@media screen and (max-width: 768px) {
    .quiz-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .quiz-option {
        padding: 12px 15px;
        font-size: 1em;
    }

    .quiz-controls {
        flex-direction: column;
        gap: 15px;
    }
}

/* Responsive pour les jeux */
@media screen and (max-width: 768px) {
    .memory-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .memory-card {
        width: 80px;
        height: 80px;
        font-size: 0.8em;
    }

    .puzzle-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
    }

    .puzzle-piece {
        width: 70px;
        height: 70px;
        font-size: 1.3em;
    }

    .game-container {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .memory-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .memory-card {
        width: 70px;
        height: 70px;
        font-size: 0.7em;
    }

    .puzzle-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .puzzle-piece {
        width: 60px;
        height: 60px;
        font-size: 1.2em;
    }
}
